﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DTO;
using BUS;

namespace CDT_CSDLNC
{
    public partial class ucChuyenTien : UserControl
    {
        public ucChuyenTien()
        {
            InitializeComponent();
        }

        public TaiKhoanNganLuongDTO tk = new TaiKhoanNganLuongDTO();

        private void btnXacNhan_Click(object sender, EventArgs e)
        {
            tk = TaiKhoanNganLuongBUS.getTaiKhoanNganLuong(txtMaTaiKhoan.Text, txtMatKhau.Text);
            if (tk != null)
            {
                frmMain main = (frmMain)this.ParentForm;
                main.kb4_buoc = 3;
                main.KichBan4();
            }
            else
            {
                MessageBox.Show("Mã tài khoản hoặc mật khẩu sai");
            }
        }
    }
}
